{% extends 'myadmin/base.html' %}
{% block title %}
<title>Book-shop会员添加</title>
{% endblock %}
{% block con %}
<div class="panel-body">
    <div class="row" style="margin-top: 80px;">
        <form class="form-horizontal" role="form" action="{% url 'myadmin_users_insert' %}" method="post"
              enctype="multipart/form-data">
            {% csrf_token %}

            <section class="panel">
                <header class="panel-heading">
                    会员添加列表
                </header>
                <div class="form-group">
                    <label class="col-lg-4 control-label">手机号*</label>
                    <div class="col-lg-4">
                        <input type="text" name="phone" required minlength="11" maxlength="11" class="form-control"
                               placeholder="请输入手机号码">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-4 control-label">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码*</label>
                    <div class="col-lg-4">
                        <input type="password" name='password' required minlength="6" class="form-control"
                               placeholder="请输入登陆密码">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-4 control-label">会员头像</label>

                    <div class="col-lg-4">
                        <input type="file" name="pic">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-4 control-label">昵&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称</label>
                    <div class="col-lg-4">
                        <input type="text" name="nikename" class="form-control" placeholder="请输入登陆昵称">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-4 control-label">居住地址</label>
                    <div class="col-lg-4">
                        <input type="text" name="homeaddress" class="form-control" placeholder="请输入居住地址">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-4">性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别</label>
                    <div class="col-lg-4">
                        <label class="checkbox-inline">
                            <input type="checkbox" name="sex" id="inlineCheckbox1" value="1"> 男
                        </label>
                        <label class="checkbox-inline">
                            <input type="checkbox" name="sex" id="inlineCheckbox2" value="0"> 女
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-4">身份类别</label>
                    <div class="col-lg-4">
                        <select name="usertype" class="form-control m-bot15">
                            <option value="0">狼人</option>
                            <option value="1">预言家</option>
                            <option value="2">平民</option>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-lg-offset-4 col-lg-4">
                        <button class="btn btn-success">提&nbsp;&nbsp;&nbsp;&nbsp;交</button>
                    </div>
                </div>
        </form>
        </section>
    </div>
</div>

{% endblock %}